package app.common.utils.cjt.ao;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 盘点入库单请求参数
 * @author feizns
 * @since 2023/04/06
 */
@Data
public class WmsStockPdQueryStockPdInDetailAo {

    /**
     * 开始时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start_time;

    /**
     * 结束时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_time;

    /**
     * 英文逗号拼接的状态值:
     *
     * 10=已取消
     *
     * 20=编辑中
     *
     * 30=待审核
     *
     * 37=待质检
     *
     * 40=质检确认
     *
     * 60=待结算
     *
     * 70=暂估结算
     *
     * 80=已完成
     */
    private String status = "80";

    public WmsStockPdQueryStockPdInDetailAo(LocalDateTime start_time) {
        this.start_time = start_time;
        this.end_time = LocalDateTime.now();
    }

    public WmsStockPdQueryStockPdInDetailAo(LocalDateTime start_time, LocalDateTime end_time) {
        this.start_time = start_time;
        this.end_time = end_time;
    }
}
